package com.zelin.nacos.controller;

import entity.Result;
import entity.StatusCode;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * Created by WF on 2020/8/3 14:51
 */
@RestController
@RequestMapping("nacos")
public class BaseNacosController {

    @Value("${server.port}")
    private String port;
    @GetMapping("/hello")
    public Result hello(){
        return new Result(true, StatusCode.OK,"欢迎使用nacos！" + port);
    }
}
